package com.suliao.message.service;


import com.suliao.common.base.BaseChannel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class MyStreamConsumer {

    @StreamListener(BaseChannel.INPUT)
    public void receive(String messageBody) {
        log.info("自定义接收器，通过stream收到消息：messageBody = {}", messageBody);
    }

}